﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Object One/Admin.Master" AutoEventWireup="true" CodeBehind="Service.aspx.cs" Inherits="ProjectHK3.Object_One.Service" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="text-align: center">
        <table style="width:65%;" align="center">
            <tr>
                <td style="text-align: left; " colspan="2">
                    <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="45pt" ForeColor="#FF6600" Text="๖ۣۜServices ๖ۣۜManagement"></asp:Label></td>
            </tr>
            <tr>
                <td style="text-align: left; width: 261px">
                    &nbsp;</td>
                <td style="text-align: right">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="text-align: left; width: 261px">
                    <asp:HyperLink ID="HyperLink1" runat="server" ForeColor="#FF6600" NavigateUrl="~/Object One/CreateService.aspx">Create New Service</asp:HyperLink>
                </td>
                <td style="text-align: right">
                    <asp:Label ID="Label2" runat="server" Text="Total:" ForeColor="Blue"></asp:Label>
                    <asp:Label ID="Label3" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="false" AutoGenerateColumns="False" PageSize="15">
                        <Columns>
                            <asp:BoundField DataField="SERVICE_CODE" HeaderText="SERVICE CODE" />
                            <asp:BoundField DataField="SERVICE_NAME" HeaderText="SERVICE NAME" />
                            <asp:TemplateField HeaderText="ACTION">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="_lbtRemove" runat="server" CommandArgument='<%# Eval("SERVICE_ID") %>' OnClientClick="return confirm('Are you sure you want to delete this record ?')" OnCommand="_lbtRemove_Command" ToolTip="Delete Service">Remove</asp:LinkButton>
                                    &nbsp; &nbsp;&nbsp;<asp:LinkButton ID="_lbtViewDetails" runat="server" CommandArgument='<%# Eval("SERVICE_ID") %>' OnCommand="_lbtViewDetails_Command" ToolTip="View Details Service information" PostBackUrl="~/Object One/ServiceDetail.aspx">View Details</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
        </table>

    </div>
</asp:Content>
